import service from '@/utils/request'

// @Tags Nicknames
// @Summary 创建Nicknames
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Nicknames true "创建Nicknames"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /nicknames/createNicknames [post]
export const createNicknames = (data) => {
  return service({
    url: '/nicknames/createNicknames',
    method: 'post',
    data
  })
}

// @Tags Nicknames
// @Summary 删除Nicknames
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Nicknames true "删除Nicknames"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /nicknames/deleteNicknames [delete]
export const deleteNicknames = (data) => {
  return service({
    url: '/nicknames/deleteNicknames',
    method: 'delete',
    data
  })
}

// @Tags Nicknames
// @Summary 删除Nicknames
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Nicknames"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /nicknames/deleteNicknames [delete]
export const deleteNicknamesByIds = (data) => {
  return service({
    url: '/nicknames/deleteNicknamesByIds',
    method: 'delete',
    data
  })
}

// @Tags Nicknames
// @Summary 更新Nicknames
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Nicknames true "更新Nicknames"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /nicknames/updateNicknames [put]
export const updateNicknames = (data) => {
  return service({
    url: '/nicknames/updateNicknames',
    method: 'put',
    data
  })
}

// @Tags Nicknames
// @Summary 用id查询Nicknames
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Nicknames true "用id查询Nicknames"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /nicknames/findNicknames [get]
export const findNicknames = (params) => {
  return service({
    url: '/nicknames/findNicknames',
    method: 'get',
    params
  })
}

// @Tags Nicknames
// @Summary 分页获取Nicknames列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Nicknames列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /nicknames/getNicknamesList [get]
export const getNicknamesList = (params) => {
  return service({
    url: '/nicknames/getNicknamesList',
    method: 'get',
    params
  })
}
